package com.bishe.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author lwx
 * @since 2022-04-14
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("teacher")
@ApiModel(value = "Teacher对象", description = "")
public class Teacher extends Model<Teacher> {

    @TableId(value = "id", type = IdType.INPUT)
    private String id;

    @TableField("name")
    private String name;

    @ApiModelProperty("教师编号")
    private String teacherNo;

    @ApiModelProperty("密码")
    private String passWord;

    @ApiModelProperty("年龄")
    private String age;

    @ApiModelProperty("教师描述")
    private String description;

    @ApiModelProperty("性别")
    private String sex;

    @ApiModelProperty("学科")
    private String type;

    @ApiModelProperty("创建时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("头像")
    private String photo;


}
